package com.example.springboot.ytest.ytest;

import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;

/**
 * 测试
 * @author yeyi771
 *
 */
public class RandomTest {
    public static void main(String[] args) {
        Random r = new Random(47);
        ThreadLocalRandom tlr = ThreadLocalRandom.current();
        
        System.out.println(r.nextInt(47));
        System.out.println(tlr.nextInt(47));
    }
}
